package com.etc.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.etc.entity.Manager;
import com.etc.service.ManagerService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml", "classpath:mybatis-config.xml" })
public class ManegerTestJUnit {

	@Autowired
	private ManagerService managerService;
	
	@Test
	public void getManager() {
		Manager manager = managerService.selectByPrimaryKey(1001,"admin");
		System.out.println(manager);
	}
}
